﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Attendence.aspx.cs" Inherits="SchoolAdministration.Attendence" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .fieldvalidator
        {
            padding-left:40px; color:red;
        }
          .checkbox
          {
              margin-left:190px;
              padding-right:20px;
              float:left;
          }
        </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
    <h3 class="page-title">Attendence of Student</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadcrum" runat="server">
    <ul class="breadcrumb">
        <li><a href="#">School Administrator</a><span class="divider">/</span></li>
        <li><a href="#">Student Manangement</a><span class="divider">/</span></li>
        <li class="active">Attendence</li>                      
    </ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainchangingpart" runat="server">
   <div class="chooseDDL"> 
   <span>Choose Class</span> <asp:DropDownList ID="DDLClass" runat="server" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DDLClass_SelectedIndexChanged"></asp:DropDownList>
    <span>Choose Section</span> <asp:DropDownList ID="DDLSection" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DDLSection_SelectedIndexChanged" runat="server"></asp:DropDownList>
        <span>Choose Subject</span> <asp:DropDownList ID="DDLSubject" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DDLSubject_SelectedIndexChanged" runat="server"></asp:DropDownList>
   </div>
        <div class="widget yellow">
        <div class="widget-title">
            <h4>Attend The Student</h4>
            <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <a href="javascript:;" class="icon-remove"></a>
            </span>
         </div>
         <div class="widget-body">
             <asp:GridView ID="GridViewStudentList"
                 AutoGenerateColumns="False"
                 CssClass="table table-bordered"
                runat="server">
                 <Columns>
                <asp:BoundField DataField="Studentid" HeaderText="Id" SortExpression="Studentid" />
                <asp:BoundField DataField="FirstName" HeaderText="Name" SortExpression="FirstName" />
                <asp:BoundField DataField="Roll" HeaderText="Roll" SortExpression="Roll" />
                <asp:TemplateField  HeaderText="Present">
                <ItemTemplate>
                    <asp:CheckBox ID="ChkPresent" runat="server" />   
                </ItemTemplate>
                </asp:TemplateField>
                     <asp:TemplateField  HeaderText="Absent">
                <ItemTemplate>
                    <asp:CheckBox ID="ChkAbsent" runat="server" />   
                </ItemTemplate>
                </asp:TemplateField>
                     <asp:TemplateField  HeaderText="Late">
                <ItemTemplate>
                    <asp:CheckBox ID="ChkLate" runat="server" />   
                </ItemTemplate>
                </asp:TemplateField>
                </Columns>
             </asp:GridView>
             <asp:Button ID="BtnSave" CssClass="submit" runat="server" Text="Save" 
            onclick="BtnSave_Click" />
             </div>
            </div>
</asp:Content>
